/**
 * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cdplife.ci.core.common.constant.dictmap;

import com.cdplife.ci.core.common.constant.dictmap.base.AbstractDictMap;

/**
 * 部门的映射
 *
 * @author jers
 * @date 2018-11-15 10:01
 *
 */
public class PolicyDict extends AbstractDictMap {

    @Override
    public void init() {
        put("policyId", "保单号");
        put("insuranceId", "保险公司名称");
        put("policyCode", "保单号");
        put("effectiveDate", "保单生效日期");
        put("invalidDate", "保单失效日期");
        put("policyType", "保单类型");
        put("tenantId", "客户名称");
        put("paymentCycle", "缴费周期");
        put("chargeMode", "计费方式");
        put("deadline", "截至日");
        put("comment", "备注信息");
        put("policyStauts", "保单状态");
        put("accessoryNum", "附件个数");
        put("linkman", "联系人");
        put("duty", "职务");
        put("tel", "固话");
        put("mobile", "手机");
        put("email", "邮箱");
        put("isDel", "是否删除");
    }

    @Override
    protected void initBeWrapped() {
        putFieldWrapperMethodName("insuranceId", "getInsuranceAbbr");
        putFieldWrapperMethodName("policyId", "getPolicyCodeById");
        putFieldWrapperMethodName("tenantId", "getTenantName");
        putFieldWrapperMethodName("policyType", "getPolicyTypeName");
        putFieldWrapperMethodName("paymentCycle", "getPaymentCycleName");
        putFieldWrapperMethodName("chargeMode", "getChargeModeName");
        putFieldWrapperMethodName("policyStauts", "getPolicyStautsName");
        putFieldWrapperMethodName("isDel", "getIsDelName");
    }
}
